import { _decorator, Component, Node, v3 } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('PlayerMapCamera')
export class PlayerMapCamera extends Component {

    @property(Node)
    player: Node;

    start() {

    }

    update(deltaTime: number) {
        let playerPos = this.player.getWorldPosition();
        let pos = v3(playerPos.x, 1000, playerPos.z);
        this.node.setWorldPosition(pos);
    }
}


